﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingCenterSystem.VocabularyManagement
{
    /// <summary>
    /// Represents a vocabulary context
    /// </summary>
    public class VocabularyContext
    {
        #region private members
        private string _contextID;
        private string _contextName;
        private string _collectionID;
        #endregion

        #region setters and getters
        /// <summary>
        /// Gets the context id.
        /// </summary>
        public string ContextID
        {
            get { return _contextID; }
        }

        /// <summary>
        /// Gets or sets the name of the context.
        /// </summary>
        public string ContextName
        {
            get { return _contextName; }
            set { _contextName = value; }
        }

        /// <summary>
        /// Gets or sets the collection id
        /// </summary>
        public string CollectionID
        {
            get { return _collectionID; }
            set { _collectionID = value; }
        }
        #endregion

        #region constructor(s)
        /// <summary>
        /// Creates a new vocabulary context
        /// </summary>
        /// <param name="id">the id of the context</param>
        /// <param name="name">the name of the context</param>
        /// <param name="collID">the id of the owning collection</param>
        public VocabularyContext(string id, string name, string collID)
        {
            _collectionID = collID;
            _contextID = id;
            _contextName = name;
        }
        #endregion
    }
}
